package sng.modules.controller
{
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	import sng.modules.model.CityProxy;
	import sng.modules.system.CitySystem;
	import sng.modules.view.CityMediator;
	
	public class CityCommand extends SimpleCommand
	{
		public function CityCommand()
		{
		}
		
		override public function execute(notification:INotification):void
		{
			
			switch (notification.getName())
			{
				case CitySystem.CityStart://游戏登录后，城建模块初始化					
					facade.registerProxy(new CityProxy());
					var app:Main=notification.getBody() as Main;
					facade.registerMediator(new CityMediator(app));
						
					break;
				
				default:
					break;	
			}
		}
	}
}